<script setup>
import { RouterLink, RouterView, useRoute } from 'vue-router'
import { Tab, Tabs } from 'vant';

const route = useRoute()
</script>
<template>
  <header></header>
  <div class="container">

    <RouterView />

    <footer class="footer" v-if="!route.meta.hidden">
      <RouterLink to="/step">
        <p>首页</p>
      </RouterLink>
      <RouterLink to="/activity">
        <p>活动</p>
      </RouterLink>
      <RouterLink to="/assistant">
        <p>助手</p>
      </RouterLink>

      <RouterLink to="/message/information">
        <p>消息</p>
      </RouterLink>
      <RouterLink to="/my">
        <p>个人中心</p>
      </RouterLink>
    </footer>
  </div>
</template>

<style lang="scss">
html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 26.66666666666666vw;

  body {
    font-size: 14px;
  }
}

.container {
  display: flex;
  flex-direction: column;

  .box {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;


    .header {
      width: 100%;
      height: 0.44rem;
      background-color: #f57b7b;
      line-height: 0.44rem;
      text-align: center;
      color: white;
    }

    section {
      overflow: auto;
    }
  }

  .content {
    overflow: auto;
  }
}

.footer {
  height: 0.5rem;
  border-top: 1px solid gray;
  display: flex;


  width: 100%;
  line-height: 0.5rem;
  background-color: rgba(0, 255, 255, 0.023);

}

.footer a {
  flex: 1;
  text-decoration: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.footer a.router-link-active {
  color: red;
}
</style>

